package com.smart.campus.school.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.smart.campus.common.annotation.Excel;
import com.smart.campus.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 教职工奖惩记录对象 sc_awards_and_punishment_record
 * 
 * @author Zhihe.Li
 * @date 2020-06-01
 */
public class AwardsAndPunishmentRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户Id */
    private Long userId;

    /** 用户奖惩Id */
    private Integer id;

    /** 奖惩类型，1:奖励；2:惩处 */
    @Excel(name = "奖惩类型，1:奖励；2:惩处")
    private Integer rType;

    /** 奖惩Id */
    @Excel(name = "奖惩Id")
    private Integer awardsPunishId;

    /** 奖惩描述 */
    @Excel(name = "奖惩描述")
    private String awardsPunishName;

    /** 创建时间 */
    @Excel(name = "获得时间", dateFormat = "yyyy-MM-dd")
    private Date gainDate;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setrType(Integer rType) 
    {
        this.rType = rType;
    }

    public Integer getrType() 
    {
        return rType;
    }
    public void setAwardsPunishId(Integer awardsPunishId) 
    {
        this.awardsPunishId = awardsPunishId;
    }

    public Integer getAwardsPunishId() 
    {
        return awardsPunishId;
    }
    public void setAwardsPunishName(String awardsPunishName) 
    {
        this.awardsPunishName = awardsPunishName;
    }

    public String getAwardsPunishName() 
    {
        return awardsPunishName;
    }

    public Date getGainDate() {
        return gainDate;
    }

    public void setGainDate(Date gainDate) {
        this.gainDate = gainDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("id", getId())
            .append("rType", getrType())
            .append("awardsPunishId", getAwardsPunishId())
            .append("awardsPunishName", getAwardsPunishName())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("gainDate", getGainDate())
            .toString();
    }
}
